package com.miukoo.aikao.core.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
　* 问题答案
　* @Author miukoo<miukoo@126.com>
　* @Date 2020/11/20 10:13
　* @Version 1.0
  */
@Setter
@Getter
@TableName("qu_question_answer")
public class QuestionAnswer extends BaseModel<QuestionAnswer> {

    private static final long serialVersionUID = 1L;

    /**
     * 答案ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 问题ID
     */
    @TableField("qu_id")
    private Long quId;

    /**
     * 是否正确
     */
    @TableField("is_right")
    private Boolean isRight;

    /**
     * 答案内容
     */
    private String content;


    /**
     * 答案分析
     */
    private String analysis;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
